package exception;

/**
 * @author Zlatka Trajcheska, Marija Petkovska
 * @version 1.0 03.03.2013 
 * 
 * This class is an Exception that is thrown when there is no grammar in the rule for some token 
 * and some non-terminal on the stack. This means a bad ordering of the sequences in the
 * string.
 */
public class NoRuleException extends Exception {

	/**
	 * This method is the constructor of the class.
	 * It calls the constructor of the Superclass with a proper message.
	 */
	public NoRuleException() {
		super("The parsing was NOT successful" +
				"\n. Stack and tokens are inconsistent. No rule in the grammar found.");
	}

	
}
